package cn.virens.server.aio.listener.simple;

import java.nio.ByteBuffer;

import cn.virens.server.aio.listener.AioDataEncoder;
import cn.virens.server.common.WritePacket;

public class SimpleAioDataEncoder implements AioDataEncoder {

	@Override
	public ByteBuffer encode(WritePacket packet) {
		return ByteBuffer.wrap(packet.dataByte());
	}

}
